textlayout: Avoid allocations for line iteration
authorMatthias Clasen <mclasen@redhat.com>
Mon, 5 Apr 2021 03:11:05 +0000 (23:11 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 5 Apr 2021 03:42:58 +0000 (23:42 -0400)
commit6cf712591f5a9555a23f269883d4f688fa9a8c70
tree24dafc8ec48c46423d95057fd49a12cd431d56b2
parentb32cd5d32871b76e7eba808b0d9dcd2377f0de11
textlayout: Avoid allocations for line iteration

No need to collect the lines firs, and allocate memory
for that. We can just iterate over them right away.
gtk/gtktextlayout.c
gtk/gtktextlayoutprivate.h